|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.facebook.Session.AuthorizationRequest
com.facebook.Session.OpenRequest
public static final class Session.OpenRequest
A request used to open a Session.
| Constructor Summary | |
|---|---|
Session.OpenRequest(Activity activity)
Constructs an OpenRequest. |
|
Session.OpenRequest(Fragment fragment)
Constructs an OpenRequest. |
|
| Method Summary | |
|---|---|
Session.OpenRequest |
setCallback(Session.StatusCallback statusCallback)
Sets the StatusCallback for the OpenRequest. |
Session.OpenRequest |
setDefaultAudience(SessionDefaultAudience defaultAudience)
Sets the defaultAudience for the OpenRequest. |
Session.OpenRequest |
setLoginBehavior(SessionLoginBehavior loginBehavior)
Sets the login behavior for the OpenRequest. |
Session.OpenRequest |
setPermissions(List<String> permissions)
Sets the permissions for the OpenRequest. |
Session.OpenRequest |
setRequestCode(int requestCode)
Sets the request code for the OpenRequest. |
| Methods inherited from class com.facebook.Session.AuthorizationRequest |
|---|
setIsLegacy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Session.OpenRequest(Activity activity)
activity - the Activity to use to open the Sessionpublic Session.OpenRequest(Fragment fragment)
fragment - the Fragment to use to open the Session| Method Detail |
|---|
public final Session.OpenRequest setCallback(Session.StatusCallback statusCallback)
statusCallback - The SessionStatusCallback to
notify regarding Session state changes.
public final Session.OpenRequest setLoginBehavior(SessionLoginBehavior loginBehavior)
loginBehavior - The SessionLoginBehavior that
specifies what behaviors should be attempted during
authorization.
public final Session.OpenRequest setRequestCode(int requestCode)
requestCode - An integer that identifies this request. This integer will be used
as the request code in onActivityResult. This integer should be >= 0. If a value < 0 is
passed in, then a default value will be used.
public final Session.OpenRequest setPermissions(List<String> permissions)
permissions - A List<String> representing the permissions to request
during the authentication flow. A null or empty List
represents basic permissions.
public final Session.OpenRequest setDefaultAudience(SessionDefaultAudience defaultAudience)
defaultAudience - A SessionDefaultAudience representing the default audience setting to request.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||